package innerclass;
//嵌套类
public class Parcel11 {
    private static class ParcelContents implements Contents{
        private int i=11;
        @Override
        public int value() {
            return i;
        }
    }

    protected static class parcelDestination implements Destination{
        private String s;
        private parcelDestination(String whereTo){
            s=whereTo;
        }
        @Override
        public String readLabel() {
            return s;
        }
        public static void f(){

        }
        static int x=10;
        static class AnotherLevel{
            public static void f(){ }
            static int x=10;
        }
    }
    public static Destination destination(String s){
        return new parcelDestination(s);
    }
    public static Contents contents(){
        return new ParcelContents();
    }

    public static void main(String[] args) {
        Contents c=contents();
        Destination d=destination("zzzz");
    }

}
